package br.com.cicero.notasfiscais.listener;
import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;


public class CicloDeVidaListener implements PhaseListener {

	@Override
	public void afterPhase(PhaseEvent event) {
		
		System.out.println("Depois da fase: " + event.getPhaseId());

	}

	@Override
	public void beforePhase(PhaseEvent event) {
		
		System.out.println("Antes da fase: " + event.getPhaseId());

	}

	@Override
	public PhaseId getPhaseId() {
		
		return PhaseId.ANY_PHASE;
	}

}
